package day04.work02;

public class Cat extends Animal {
    private String color;

    public Cat(){}
    public Cat(String name,String color){
        super(name);
        this.color=color;
    }

    public void move(){
        System.out.println("小猫爱打滚");
    }

    @Override
    public void makeSound() {
        System.out.println("小猫喵喵叫");
    }
    @Override
    public String toString() {
        return "Cat [color=" + color + ", getName()=" + getName() + "]";
    }

    
}
